const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
module.exports = {
  mode: 'production',
  output: {
    publicPath: '/',
    filename: 'js/[name].[contenthash:8].js',
  },
  optimization: {
    minimizer: [
      new CssMinimizerPlugin(), // 压缩css
    ]
  },
}